package com.tencent.iov.cowin.befsale.clue.controller.clue.vo.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.software.common.model.request.ScrmBaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 添加_Request层
 *
 * @author whp
 * @version 1.0
 * @created 2021-12-21 16:16:13
 */
@Data
@ApiModel(description = "线索源信息表_Request层")
public class AccessAddClueInitialRequest extends ScrmBaseRequest {
    /**
     * request_id 请求id  待定义规则
     */
    @ApiModelProperty(value = "request_id 请求id", example = "stringValue")
    private String requestId;

    /**
     * 来源 线上/线下  前端传默认线上，
     */
    @ApiModelProperty(value = "来源 线上/线下", example = "1")
    private Integer sourceFirst;
    /**
     * 来源 经销商/二网/总部  前端输入
     */
    @ApiModelProperty(value = "来源 经销商/二网/总部", example = "1")
    private Integer sourceSecond;
    /**
     * 来源 渠道code
     * 谢恩方：Q20220125001，（实际是code）社区小程序
     *       Q20220125002 (实际是code) 经纪人小程序
     */
    @ApiModelProperty(value = "来源 渠道code ", example = "stringValue")
    private String sourceThird;

    /**
     * 活动id
     * 谢恩方是：H20220125001（实际是code），数字化营销平台
     */
    @ApiModelProperty(value = "活动id", example = "stringValue")
    private String sourceActivityId;

    /**
     * 创建人id
     */
    @ApiModelProperty(value = "创建人id", example = "stringValue")
    private String sourceCreatedbyId;

    /**
     * 姓名  前端输入
     */
    @ApiModelProperty(value = "姓名", example = "stringValue")
    private String name;
    /**
     * 手机号  前端输入
     */
    @ApiModelProperty(value = "手机号", example = "stringValue")
    private String phone;

    /**
     * 客户全局唯一id
     */
    @ApiModelProperty(value = "客户全局唯一id", example = "stringValue")
    private String oneId;
    /**
     * 备用手机号 前端输入
     */
    @ApiModelProperty(value = "备用手机号", example = "stringValue")
    private String phoneBak;

    @ApiModelProperty(value = "意向经销商code,erpId")
    private String dealerCode;

    @ApiModelProperty(value="意向车型配置")
    private List<VehicleSeriesAndModelRequest> intentionVehicleList;

    /**
     * 性别 GenderEnum
     */
    @ApiModelProperty(value = "性别", example = "1")
    private Integer gender;

    /**
     * 生日
     */
    @ApiModelProperty(value = "生日", example = "stringValue")
    private String birthday;

    /**
     * 省code
     */
    @ApiModelProperty(value = "省code", example = "stringValue")
    private String provinceCode;
    /**
     * 市code
     */
    @ApiModelProperty(value = "市code", example = "stringValue")
    private String cityCode;
    /**
     * 区code
     */
    @ApiModelProperty(value = "区code", example = "stringValue")
    private String districtCode;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址", example = "stringValue")
    private String address;
    /**
     * 微信昵称
     */
    @ApiModelProperty(value = "微信昵称", example = "stringValue")
    private String qwName;

    /**
     * 外部联系人id
     */
    @ApiModelProperty(value = "外部联系人id", example = "stringValue")
    private String externalUserid;

    /**
     * 客户备注 前端输入
     */
    @ApiModelProperty(value = "客户备注", example = "stringValue")
    private String cusRemark;

    /**
     * 意向等级_意向字典
     * IntentionGradeEnum
     */
    @ApiModelProperty(value = "意向等级_意向字典", example = "stringValue")
    private String intentionGrade;
    /**
     * 线索来源——业务类型
     * AccessAddTypeEnum
     *
     * 这三个字段：业务单号，业务时间是试驾，整车订单的，经纪人不用填
     */
    @ApiModelProperty(value = "业务类型:1：试驾预约 2：整车订单", example = "stringValue")
    private Integer accessAddType;
    @ApiModelProperty(value = "业务单号", example = "stringValue")
    private String accessAddNumber;
    @ApiModelProperty(value = "业务开展时间:试驾预约传试驾预约时间订单传下定时间", example = "stringValue")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date accessAddTime;
    /**
     * 跟进人id，org_成员id
     */
    /*@ApiModelProperty(value = "跟进人id，org_成员id", example = "stringValue")
    private Long followEmpId;*/

    /**
     * 到店接待_进店时间  本次跟进内容=到店接待 时 进店时间  前端输入
     */
    /*@ApiModelProperty(value = "到店接待_进店时间", example = "2020-03-28 13:46:56")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date checkinTime;*/
    /**
     * 到店接待_离店时间  本次跟进内容=到店接待 时 离店时间  前端输入
     */
   /* @ApiModelProperty(value = "到店接待_离店时间", example = "2020-03-28 13:46:56")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date checkoutTime;*/

    /*@ApiModelProperty(value = "试乘试驾_车系code")
    private String driveSeriesCode;
    @ApiModelProperty(value = "试乘试驾_车型code")
    private String driveModelCode;
    @ApiModelProperty(value = "试乘试驾_配置code")
    private String driveConfigCode;*/
/*
    @ApiModelProperty(value = "下订_车系code")
    private String oderSeriesCode;
    @ApiModelProperty(value = "下订_车型code")
    private String orderModelCode;
    @ApiModelProperty(value = "下订_配置code")
    private String orderConfigCode;
    @ApiModelProperty(value = "下订_姓名")
    private String orderName;
    @ApiModelProperty(value = "下订_手机号")
    private String orderPhone;
    @ApiModelProperty(value = "下订_金额")
    private BigDecimal orderMoney;*/
    /**
     * 下订_交车时间  前端输入
     */
    /*@ApiModelProperty(value = "下订_交车时间", example = "2020-03-28 13:46:56")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date orderDeliveryTime;*/
    /**
     * 下订_地址  前端输入
     */
    /*@ApiModelProperty(value = "下订_地址", example = "stringValue")
    private String orderAddress;*/
    /**
     * 交车_姓名 前端输入
     */
    /*@ApiModelProperty(value = "交车_姓名", example = "stringValue")
    private String deliveryName;
    *//**
     * 交车_手机号 前端输入
     *//*
    @ApiModelProperty(value = "交车_手机号", example = "stringValue")
    private String deliveryPhone;*/

    /**
     * 预约类型？？
     */
    /*@ApiModelProperty(value = "预约类型", example = "stringValue")
    private String arrangeType;*/

    /**
     * 第三方预约编号  待定义
     */
 /*   @ApiModelProperty(value = "第三方预约编号", example = "stringValue")
    private Long arrangeNo;*/

    /**
     * 下次跟进时间  前端输入
     */
    /*@ApiModelProperty(value = "下次计划跟进_时间", example = "2020-03-28 13:46:56")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date planFollowTime;*/

    /**
     * 下次计划跟进内容标签id（0产品介绍 1到店接待，2试乘试驾，3下订，4交车） 前端输入
     */
    /*@ApiModelProperty(value = "下次计划跟进_内容标签id（0产品介绍 1到店接待，2试乘试驾，3下订，4交车）", example = "stringValue")
    private String planFollowContent;*/

    /**
     * 跟进备注
     */
   /* @ApiModelProperty(value = "下次计划跟进_备注", example = "stringValue")
    private String planFollowRemark;*/

    @Data
    public static class VehicleSeriesAndModelRequest{
        @ApiModelProperty(value = "车系code")
        private String seriesCode;

        @ApiModelProperty(value = "车型code")
        private String modelCode;
    }

}